import request from '@/utils/request'

/**
 * 登录功能
 */

// 登录接口
export const login = (loginUser, identify) => {
  const { id, password } = loginUser
  return request.post('/admin/manage/login', {
    id, identify, password
  })
}

// 修改密码接口
export const updatePassword = (updateUser, identify) => {
  const { id, password } = updateUser
  return request.put('/admin/manage/updatePassword', {
    id, identify, password
  })
}
